//监听登录接口状态;
export default function log(){
    return async (ctx,next) =>{
        let startTime =new Date().getTime();
        await next();
        let endTime =new Date().getTime();
        let time=new Date();
        // let time=new Date().subing(7,19);
        console.log(`${time}访问服务器${ctx.url},耗时${endTime-startTime}`)
    }
}